#pragma once

#include <map>
#include <vector>
#include <string>

struct Config
{
    // [server]
    std::string listenAddr;

    std::string logDir;

    // [pd]
    std::string pdAddr;

};


extern Config g_config;

extern bool LoadTiRedisConfig(const char* cfgFile, Config& cfg);

